package com.konne.nightmare.FastPublicOpinion.http;

/****
 * 环境配置文件
 */
public final class Config {

//    https://www.yuqing.cn/api/(网关名)
//    例子：https://www.yuqing.cn/api/topic

    public enum Environment {
        DEVELOPMENT, // 开发环境
        TEST, // 测试环境
        DEMONSTRATION, // 演示环境
        PRODUCTION, // 线上环境
    }

    // 当前环境MI
    public static Environment env = Environment.PRODUCTION;

    public static final String DEVELOPMENT_PUBLIC_SERVER_URL = "";

    // 测试环境地址
    public static final String TEST_PUBLIC_SERVER_URL = "";
    // 演示环境地址
    public static final String DEMONSTRATION_PUBLIC_SERVER_URL = "";
    // 线上环境地址
    public static final String PRODUCTION_PUBLIC_SERVER_URL = "http://api.v2.yyj.cn/api/";


    /******************** 新版本Api ********************/
    public static String getOpenApi() {
        if (Config.env == Environment.TEST) {
            return Config.TEST_PUBLIC_SERVER_URL + "";
        } else if (Config.env == Environment.DEMONSTRATION) {
            return Config.DEMONSTRATION_PUBLIC_SERVER_URL + "";
        } else if (Config.env == Environment.PRODUCTION) {
            return Config.PRODUCTION_PUBLIC_SERVER_URL + "";
        } else if (Config.env == Environment.DEVELOPMENT) {
            return Config.DEVELOPMENT_PUBLIC_SERVER_URL + "";
        }
        return "";
    }

}
